const echarts = require('echarts/lib/echarts');

const config = {
    animationDuration: 600,
    animationDurationUpdate: 2000, //就不生效2333
    // grid: {
    //     left: '3%',
    //     right: '4%',
    //     bottom: '3%',
    //     containLabel: true
    // },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
        show: true,
        axisLine: {
            lineStyle: {
                color: "#818285"
            }
        },
        axisLabel: {
            color: "#818285",
            fontWeight: "normal",
            fontFamily: "Microsoft Yahei",
            fontSize: 13
        },
    },
    yAxis: {
        type: "value",
        show: true,
        min: 'dataMin',
        max: 'dataMax',
        splitNumber: 5,
        axisLine: {
            show: true,
            lineStyle: {
                color: "#999"
            }
        },
        axisLabel: {
            fontSize: 12,
            fontWeight: 'normal',
            fontFamily: 'Microsoft YaHei',
            color: '#000'
        },
        splitLine: {
            show: true,
            lineStyle: {
                color: '#000',
                type: 'solid'
            }
        }
    },
    legend: {
        show: true,
        left: "left",
        top: "bottom",
        textStyle: {
            color: "#999",
            fontWeight: "normal",
            fontSize: 14,
            fontFamily: "Arial"
        },
    },
    series: [{
            name: '邮件营销',
            type: 'line',
            smooth: false,
            symbolSize: 5,
            silent: true,
            symbol: 'circle',
            label: {
                show: false,
                fontWeight: 'normal',
                fontFamily: 'Microsoft YaHei',
                fontSize: 12,
                color: '#000'
            },
            emphasis: {
                focus: 'series'
            },
            data: [1, 12, 3, 14, 8, 11, 17, 18, 9, 22, 9, 1, 2, 3, 2, 0, 7, 8, 9, 10],
            lineStyle: {
                color: '#dc1515',
                width: 5,
                type: 'solid'
            },
            itemStyle: {
                color: '#dc1515'
            }
        },
        {
            name: '12334',
            type: 'line',
            smooth: false,
            symbolSize: 5,
            silent: true,
            symbol: 'circle',
            label: {
                show: false,
                fontWeight: 'normal',
                fontFamily: 'Microsoft YaHei',
                fontSize: 12,
                color: '#000'
            },
            emphasis: {
                focus: 'series'
            },
            data: [ 12, 3, 14, 8, 11, 17, 18, 9, 22, 9, 1, 2, 3, 2, 0, 7, 8, 9, 10, 1],
            lineStyle: {
                color: '#999',
                width: 5,
                type: 'solid'
            },
            itemStyle: {
                color: '#999'
            }
        },
    ],

};

export {
    config
}